package com.boardgame.gwt.service.operate.action;

import com.boardgame.common.entity.ResponseInfo;
import com.boardgame.gwt.data.GwtGameBoard;
import com.boardgame.gwt.finalinfo.SyntaxMatchFinal;
import com.boardgame.gwt.service.operate.SyntaxBaseAction;
import com.boardgame.gwt.service.operate.SyntaxRequest;
import com.boardgame.gwt.service.operate.action.advance.AdvanceTrainCost2CoinAction;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * 买牛行动
 */
public class BuyOxenAction extends SyntaxBaseAction {
    @Override
    public Pattern getPattern() {
        return Pattern.compile(SyntaxMatchFinal.BUY_OXEN);
    }
    @Override
    public ResponseInfo action(GwtGameBoard gwtGameBoard, SyntaxRequest syntaxRequest, Matcher matcher) {
        super.action(gwtGameBoard, syntaxRequest, matcher);
        return ResponseInfo.Success(null);
    }

    public static BuyOxenAction create(){
        return new BuyOxenAction();
    }

}
